<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="/Application/Admin/View//Public/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="/Application/Admin/View//Public/static/css/font-awesome.css" rel="stylesheet">

    <link href="/Application/Admin/View//Public/static/css/animate.css" rel="stylesheet">
    <link href="/Application/Admin/View//Public/static/css/style.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>if(window.top !== window.self){ window.top.location = window.location;}</script>
</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen  animated fadeInDown">
        <div>
            <div>

                <h1 class="logo-name">h</h1>

            </div>
            <h3>欢迎使用悟空APP内测分发</h3>

           <form action="<?php echo U('login/login');?>" method="post">
                <div class="form-group">
                    <input type="text" name="username" class="form-control" id="exampleInputUser" placeholder="用户名">
                </div>
                <div class="form-group">
                    <input type="password" name="password" class="form-control" id="exampleInputPassword" placeholder="密码">
                </div>
                
                 <div class="form-group">
                            <input type="text"  name="verify" class="form-control" id="exampleInputCode" placeholder="验证码" id="exampleInputCode">
                            
                            <img class="verify" src="<?php echo U('login/verify');?>" alt="点击刷新" onClick="this.src=this.src+'?'+Math.random()" style="margin: 20px 0;"/>
                </div>
                
                <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>

                <!--<p class="text-muted text-center"> <a href="login.html#"><small>忘记密码了？</small></a> | <a href="register.html">注册一个新账号</a>-->
                </p>

            </form>
        </div>
    </div>

    <!-- 全局js -->
    <script src="/Application/Admin/View//Public/static/js/jquery.min.js"></script>
    <script src="/Application/Admin/View//Public/static/js/bootstrap.min.js"></script>

</body>

</html>
<script>
    $(function(){
        $(".verify1").click(function(){
            var src = "<?php echo U('login/verify');?>";

            var random = Math.floor(Math.random()*(1000+1));
            alert(src+"&random="+random);
            $(this).attr("src",src+"&random="+random);

        });
    })
</script>